package com.jnu.myfirstapplication.data;

import java.io.Serializable;

public class Book implements Serializable {
    private int bookid;
    private String name;
    private static final long serialVersionUID = 2L;
    public void setPrice(double price) {
        this.price = price;
    }

    private double price;

    public double getPrice() {
        return price;
    }

    public Book(String name, int id, double price) {
        this.name = name;
        this.bookid = id;
        this.price=price;
    }

    public int getCoverResourceId() {
        return bookid;
    }

    public String getTitle() {
        return name;
    }

    public void setTitle(String title) {
        this.name = title;
    }

    public void setId(int id) {
        this.bookid = id;
    }
}
